package com.ccgk.logistics.service;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ccgk.common.page.PaginationVo;
import com.ccgk.logistics.domain.Currency;
import com.ccgk.logistics.service.ContainerService.ContainerCriteria;

public interface CurrencyService {
	
	static class CurrencyCriteria{
		private Map<Integer,Object> params = new HashMap<Integer,Object>();
		
		public CurrencyCriteria nameLike(String name){
			params.put(1,name);
			return this;
		}
		
		public Map<Integer,Object> getParams(){
			return Collections.unmodifiableMap(params);
		}
	}
	
	Integer add(Currency currency);
	
	Currency getById(int id);
	
	List<Currency> findAll();
	
	Integer update(Currency currency);
	
	Integer delete(int id);

	PaginationVo<Currency> findList(CurrencyCriteria criteria,int currentPage, int pageSize);

	void batchDelete(Integer[] idIntArray);

	Currency getByName(String name);
}
